package com.ljkj.blockpay.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseActivity;
import com.ljkj.blockpay.databinding.ActivityPreferencesBinding;
import com.ljkj.blockpay.presenter.PreferencesPresenter;
import com.ljkj.blockpay.util.ToggleToActivity;
import com.ljkj.blockpay.widget.ClickListener;

/**
 * 偏好设置页面
 */
public class PreferencesActivity extends BaseActivity<ActivityPreferencesBinding,PreferencesPresenter> implements ClickListener {


    @Override
    public int initContentView() {
        return R.layout.activity_preferences;
    }

    @Override
    protected PreferencesPresenter createPresenter() {
        return null;
    }

    @Override
    protected void init(Bundle savedInstanceState) {

    }

    @Override
    protected void initData() {
        super.initData();
        binding.setOnClick(this::onClick);
        binding.tvTitle.setLeftBackFinish(this);
        binding.tvTitle.setTitleContent(R.string.preferences);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.rl_selectlanguage:
                ToggleToActivity.toSelectLanuguageActivity(this);
                break;
            case R.id.rl_pricingmanner:
//                ToggleToActivity.toSelectActivity(this);
                break;
            case R.id.rl_commoncurrency:
//                ToggleToActivity.toSelectActivity(this);
                break;
        }
    }
}